/*
 * @Author: 徐凯 xukai@sinoroad.com
 * @Date: 2023-11-30 10:26:43
 * @Description:
 */
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/yuntu-demo'
    },
    {
      path: '/yuntu-demo',
      name: 'yuntu-demo',
      component: () => import('../views/yuntu-demo/index.vue'),
      redirect: '/yuntu-demo/home',
      children: [
        {
          path: 'home',
          name: 'home',
          component: () => import('../views/yuntu-demo/home/index.vue')
        }
      ]
    }
  ]
})

export default router
